package com.example.testapp.activity.activity.read;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;

import com.example.testapp.R;

/**
 * Created by l on 2016/7/31.
 */
public class MyViewTestActivity extends AppCompatActivity {


    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        int flag = getIntent().getIntExtra("flag", -1);
        switch (flag){
            case 0:
                setContentView(R.layout.view_teaching);
                break;
            case 1:
                setContentView(R.layout.view_texting);
                break;
            case 2:
                setContentView(R.layout.view_shine);
                break;
            case 3:

                break;
            case 4:

                break;
            case 5:
                setContentView(R.layout.view_test_scroller);
                break;
        }
    }
}
